/*
 * @Author: zhanglianchang
 * @Date: 2020-08-01 14:39:32
 * @Last Modified by: taoshiwei
 * @Last Modified time: 2019-04-29 14:53:23
 *
 * 学科有关的接口：自己写吧~~  已经被张老师删了 ^_^
 */

import { createAPI } from "@/utils/request";

// 学科列表请求
export const getSubjectList = data => createAPI("/subjects", "get", data);

// 添加学科请求
export const addSubjects = data => createAPI("/subjects", "post", data);

// 添加修改学科的请求 数据id 学科名称
export const editSubjects = (id, data) =>
  createAPI(`/subjects/${id}`, "put", data);

// 删除学科的请求
export const deleteSubject = id => createAPI(`/subjects/${id}`, "delete");

// 学科详情请求
export const subjectsMessage = id => createAPI(`/subjects/${id}`, "get");

// 请求学科简单列表
export const simpleSubjects = () => createAPI("/subjects/simple", "get");
// 庞 目录
export const getDirectory = data => createAPI("/directorys", "get", data);
// 庞 获取标签列表
export const getSubTags = data => createAPI("/tags", "get", data);
